<?php
namespace app\index\controller;
use think\Loader;
class Index extends Base{

    //前端首页
    public function index(){
        $invoking              = Loader::model('Other','service');
        $data        = $invoking->counselorList();
        $data_list   = $invoking->indexData();
        $this->assign('counselor_list',$data['list']);
        $this->assign('column_list',$data['column']);
        $this->assign('lawyer_list',$data_list['lawyer_list']);
        $this->assign('news_list',$data_list['news_list']);
        $this->assign('index_css',1);
        $this->assign('sie',pageSie(1));//页面描述与关键字

        $this->assign('product_adviser',product(11));//
        $this->assign('product_labour',product(6));//
        $this->assign('product_lawyer',product(2));//
        $this->assign('product_design',product(3));//
        $this->assign('product_scheme',product(4));//
        $this->assign('product_teach',product(7));//
        return   $this->fetch();
    }

    //404
    public function er404(){
        return   $this->fetch();
    }

}
